<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<title>Document</title>
		<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
		<!-- Font Awesome 图标 -->
    	<link rel="stylesheet" href="fontawesome/css/all.min.css">
		<link rel="stylesheet" href="css/search2.css" />
		<link rel="stylesheet" href="css/base.css" />
		<link rel="stylesheet" href="css/login.css" />
		<link rel="stylesheet" href="css/sign.css" />
		<!-- 字体文件 -->
		<!-- <link rel="stylesheet" href="https://api.chinesefontstorage.com/fonts/lxgwwenkai.css"> -->
	</head>
	<body>
		<div class="container-fluid logP hidden text-center" id="logP">
			<div class="login-container hidden" id="log">
				<!-- 登录卡片 -->
				<div class="login-card" id="login-card">
					<!-- 头部区域 -->
					<div class="login-header">
						<h1>欢迎回来</h1>
						<p>请登录您的账户</p>
					</div>

					<!-- 表单区域 -->
					<div class="form-container">
						<!-- 头像显示区域 -->
						<div class="avatar-container" id="avatarContainer">
							<div class="avatar-placeholder">
								👤
							</div>
						</div>

						<!-- 响应消息 -->
						<div id="responseMessage" class="response-message"></div>

						<!-- 登录表单 -->
							<!-- 用户名/邮箱 -->
							<div class="form-group">
								<label for="loginId">用户名</label>
								<div class="input-wrapper">
									<div class="input-icon">@</div>
									<input type="text" id="loginId" name="loginId" class="form-control"
										placeholder="请输入用户名" required>
								</div>
							</div>

							<!-- 密码 -->
							<div class="form-group">
								<label for="password">密码</label>
								<div class="input-wrapper">
									<div class="input-icon">🔒</div>
									<input type="password" id="password" name="password" class="form-control"
										placeholder="请输入密码" required>
									<div class="password-toggle" id="togglePassword">👁️</div>
								</div>
								<div style="margin-top: 8px;">
									<span id="loginInfo" class="status-text"></span>
								</div>
								<div class="forgot-password">
									<a href="#">忘记密码?</a>
								</div>
							</div>

							<!-- 记住我 -->
							<div class="remember-me">
								<input type="checkbox" id="rememberMe" name="rememberMe">
								<label for="rememberMe">记住我的登录状态</label>
							</div>

							<!-- 登录按钮 -->
							<button class="login-btn" id="loginBtn">
								<span id="loginBtnText">登录账户</span>
							</button>

					</div>
				</div>
			</div>

			<div class="register-container hidden" id="sig">
				<!-- 注册卡片 -->
				<div class="register-card">
					<!-- 头部区域 -->
					<div class="register-header">
						<h1>用户注册</h1>
						<p>创建您的专属账户</p>
					</div>

					<!-- 表单区域 -->
					<div class="form-container">
						<!-- 响应消息 -->
						<div id="responseMessage" class="response-message"></div>

						<!-- 注册表单 -->
						<form id="registerForm">
							<!-- 用户名 -->
							<div class="form-group">
								<label for="username">用户名</label>
								<div class="input-wrapper">
									<div class="input-icon">👤</div>
									<input type="text" id="username" name="username" class="form-control"
										placeholder="请输入用户名" required>
								</div>
								<div style="margin-top: 8px;">
									<span id="statusText" class="status-text">请输入用户名</span>
								</div>
							</div>

							<!-- 密码 -->
							<div class="form-group">
								<label for="password">密码</label>
								<div class="input-wrapper">
									<div class="input-icon">🔒</div>
									<input type="password" id="passwords" name="password" class="form-control"
										placeholder="请输入密码" required>
									<div class="password-toggle" id="togglePasswords">👁️</div>
								</div>
								<div style="margin-top: 8px;">
									<span id="passwordText" class="status-text">请输入密码</span>
								</div>
							</div>

							<!-- 性别 -->
							<div class="form-group">
								<label for="gender">性别</label>
								<div class="input-wrapper">
									<div class="input-icon">👫</div>
									<select id="gender" name="gender" class="form-control" required>
										<option value="空">请选择性别</option>
										<option value="男">男</option>
										<option value="女">女</option>
									</select>
								</div>
								<div style="margin-top: 8px;">
									<span id="genText" class="status-text"></span>
								</div>
							</div>

							<!-- 生日 -->
							<div class="form-group">
								<label for="birthday">生日</label>
								<div class="input-wrapper">
									<div class="input-icon">📅</div>
									<input type="date" id="birthday" name="birthday" class="form-control" required>
								</div>
							</div>

							<!-- 上传头像 -->
							<div class="form-group">
								<label for="headImg">上传头像</label>
								<input type="file" id="headImg" name="headImg" accept="image/*" style="display: none;">
								<button type="button" id="uploadBtn" class="upload-btn">选择图片</button>
							</div>

							<!-- 注册按钮 -->
							<button class="register-btn" id="registerBtn">
								<span id="registerBtnText">注册</span>
							</button>
						</form>

					</div>
				</div>

			</div>
		</div>
	<!-- 导航栏 -->
	<div class="container-fluid fixed-top  navbar-custom" id="top">
			<nav class="navbar navbar-expand-lg" role="navigation">

				<div class="container position-relative">
					<a href="index.jsp" class="navbar-brand navbar-b-custom font-logo">
						<img src="img/headLogo.png" alt="" id="headImage">
					</a>
					<!-- 搜索条 -->
					<form action="searchGoodsDo" method="get" id="searchForm">
    					<div class="d-flex position-absolute start-50 translate-middle-x serchBar">
        					<input name="searchName" type="text" class="form-control1 form-control-sm" id="searchBar" value="${param.searchName }"/>
        					<button type="submit" class="btn btn-primary ms-2 serchBut">搜索</button>
    					</div>
					</form>
					<!-- 右侧用户信息栏 -->



					<c:choose>
						<c:when test="${not empty sessionScope.logInUser}">
							<ul class="navbar-nav mb-2 mb-lg-0 align-items-center">
								<li class="nav-item d-flex align-items-center">
									<img src="${logInUser.headimg}" alt="" class="headimg align-self-center">
								</li>
								<li class="nav-item"><a href="mineInformation.jsp" class="nav-link navbar-a-custom"
										id="">个人主页</a></li>
								<li class="nav-item"><a href="order.jsp" class="nav-link navbar-a-custom">我的订单</a></li>
								<li class="nav-item"><a href="userLogOut" class="nav-link navbar-a-custom">退出</a></li>
							</ul>
						</c:when>
						<c:otherwise>
							<ul class="navbar-nav mb-2 mb-lg-0 align-items-center">
								<li class="nav-item"><a href="#" class="nav-link navbar-a-custom" id="sign">注册</a></li>
								<li class="nav-item"><a href="#" class="nav-link navbar-a-custom" id="login">登录</a></li>
							</ul>
						</c:otherwise>
					</c:choose>

				</div>
			</nav>
		</div>
		<!-- 中部信息区 -->
		<div class="container-fluid"  id="middle">
			<div class="container middle">
				<div class="options container">
					<div class="dropdown mb-4" style="display: inline-block;">
					    <button class="btn btn-secondary dropdown-toggle btn-style" type="button" id="animatedDropdown1" data-bs-toggle="dropdown" aria-expanded="false">
					        <strong>综合</strong>
					    </button>
					    <ul class="dropdown-menu selects" aria-labelledby="animatedDropdown">
					        <li><a class="dropdown-item" href="#" id="sc1">综合</a></li>
					        <li><a class="dropdown-item" href="#" id="sc2">数码电子</a></li>
					        <li><a class="dropdown-item" href="#" id="sc3">家用电器</a></li>
							<li><a class="dropdown-item" href="#" id="sc4">服装鞋包</a></li>
							<li><a class="dropdown-item" href="#" id="sc5">家具家居</a></li>
							<li><a class="dropdown-item" href="#" id="sc6">母婴儿童</a></li>
							<li><a class="dropdown-item" href="#" id="sc7">运动户外</a></li>
							<li><a class="dropdown-item" href="#" id="sc8">美妆个护</a></li>
							<li><a class="dropdown-item" href="#" id="sc9">书籍音像</a></li>
							<li><a class="dropdown-item" href="#" id="sc10">珠宝首饰</a></li>
							<li><a class="dropdown-item" href="#" id="sc11">实用五金</a></li>
							<li><a class="dropdown-item" href="#" id="sc12">爱好潮玩</a></li>
							<li><a class="dropdown-item" href="#" id="sc13">生活用品</a></li>
					        <li><hr class="dropdown-divider"></li>
					    </ul>
					</div>
					<div class="dropdown mb-4" style="display: inline-block;">
						<button class="btn btn-secondary dropdown-toggle btn-style" type="button" id="animatedDropdown2" data-bs-toggle="dropdown" aria-expanded="false">
						    <strong>排序</strong>
						</button>
						<ul class="dropdown-menu selects" aria-labelledby="animatedDropdown">
						    <li><a class="dropdown-item" href="#" id="orderTypeA">价格从高到低</a></li>
						    <li><a class="dropdown-item" href="#" id="orderTypeB">价格从低到高</a></li>
						    <li><a class="dropdown-item" href="#" id="orderTypeC">卖家信用从高到低</a></li>
						    <li><hr class="dropdown-divider"></li>
						</ul>
					</div>
					<div class="tagBox">
						<p><input type="checkbox" class="selects" name="" id="c2">包邮</p> 
						<p><input type="checkbox"  name="" id="c3">全新</p> 
					</div>
				</div>
				<div class="goods container" id='box'>
					
				</div>
			</div>
		</div>
			
		<!-- 底部区 -->
		<footer class="container-fluid bottom p-3 mt-auto" id="footer">
			<div class="font-logo infoLeft mx-auto">
				<strong>复焕集 </strong>旧物也能焕然一新的二手市场。
			</div>
			<div class="container">
				<div class="d-flex flex-wrap justify-content-between">
					<ul class="footer-links mb-2 mb-lg-0 flex-grow-1 px-3 text-center">
						<strong>关于我们</strong>
						<li><a href="">公司介绍</a></li>
						<li><a href="">团队介绍</a></li>
						<li><a href="">媒体报道</a></li>
						<li><a href="">加入我们</a></li>
					</ul>
					<ul class="footer-links mb-2 mb-lg-0 flex-grow-1 px-3 text-center">
						<strong>帮助中心</strong>
						<li><a href="">新手入门</a></li>
						<li><a href="">交易流程</a></li>
						<li><a href="">常见问题</a></li>
						<li><a href="">安全指南</a></li>
					</ul>
					<ul class="footer-links mb-2 mb-lg-0 flex-grow-1 px-3 text-center">
						<strong>规则中心</strong>
						<li><a href="">用户协议</a></li>
						<li><a href="">隐私政策</a></li>
						<li><a href="">交易规则</a></li>
						<li><a href="">社区公约</a></li>
					</ul>
					<ul class="footer-links mb-2 mb-lg-0 flex-grow-1 px-3 text-center">
						<strong>联系我们</strong>
						<li><a href="">客服电话：400-114-514</a></li>
						<li><a href="">商务合作：bd@fuhuanji.com</a></li>
						<li><a href="">举报反馈：report@fuhuanji.com</a></li>
					</ul>
				</div>
			</div>
		</footer>
	</body>
	<script src="bootstrap/js/bootstrap.bundle.min.js"></script>
	<script src="js/jquery.js"></script>
	<script src="js/searchBook.js"></script>
	<script src="js/login.js"></script>
	<script src="js/sign.js"></script>
	<script>
	let searchName = "${param.searchName }"
	console.log(searchName)
		$('#box').on('click','.goodsI',function(){
			
		})
	</script>
</html>